<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    body {
      width: 3000px;
      height: 3000px;
    }
  </style>
</head>
<body>
    <script>
        console.log('bom级别',window.innerWidth);
        console.log('bom级别',window.innerHeight);



        console.log('dom级别',document.documentElement.clientWidth);
        console.log('dom级别',document.documentElement.clientHeight);

    </script>
</body>
</html>
